import server from "../utils/request.js";

export function queryByResidentId(id){
    return server({
        url: `/signRecord/queryByResidentId/${id}`,
        method: 'GET'
    })
}

export function queryRecord(pageNum,pageSize){
    return server({
        url: `/signRecord/queryAll/${pageNum}/${pageSize}`,
        method: 'GET'
    })
}

export function deleteRecord(id){
    return server({
        url: `/signRecord/delete/${id}`,
        method: 'DELETE'
    })
}

export function updateRecord(data){
    return server({
        url: '/signRecord/update',
        method: 'PUT',
        data
    })
}